package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * IpList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ip_list", catalog = "imcdbserver", uniqueConstraints = @UniqueConstraint(columnNames = {
		"low", "high" }))
public class IpList implements java.io.Serializable {

	// Fields

	private IpListId id;

	// Constructors

	/** default constructor */
	public IpList() {
	}

	/** full constructor */
	public IpList(IpListId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "low", column = @Column(name = "low")),
			@AttributeOverride(name = "high", column = @Column(name = "high")),
			@AttributeOverride(name = "note", column = @Column(name = "note", length = 16777215)) })
	public IpListId getId() {
		return this.id;
	}

	public void setId(IpListId id) {
		this.id = id;
	}

}